﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：TwoCanteenDetailsReportDetailInfo
// 文件功能描述：二食堂消费详细明细报表业务逻辑层
//
// 
// 创建标识：2012-05-22 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.WaiGaoQiao;
using System.Data;

namespace Model.WaiGaoQiao
{
    public class TwoCanteenDetailsReportDetailInfo
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartTime
        {
            get;
            set;
        }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndTime
        {
            get;
            set;
        }
        /// <summary>
        /// 部门编号
        /// </summary>
        public string DEP_ID
        {
            get;
            set;
        }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DEPTNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 人员编号
        /// </summary>
        public string EMPNO
        {
            get;
            set;
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string PNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 机号
        /// </summary>
        public string MacNo
        {
            get;
            set;
        }

        private DataAccessTwoCanteenDetailsReportDetail dar;
        private int TwoCanteenDetailsReportDetailcount;
        public int _TwoCanteenDetailsReportDetailcount
        {
            get { return TwoCanteenDetailsReportDetailcount; }
        }
        public TwoCanteenDetailsReportDetailInfo(bool isgetcount)
        {
            dar = new DataAccessTwoCanteenDetailsReportDetail();
            if (isgetcount)
            {
                TwoCanteenDetailsReportDetailcount = GetTwoCanteenDetailsReportDetailCount();
            }
        }
        public TwoCanteenDetailsReportDetailInfo()
        { }

        /// <summary>
        /// 获取二食堂消费明细表的数量
        /// </summary>
        /// <returns></returns>
        private int GetTwoCanteenDetailsReportDetailCount()
        {
            return dar.GetTwoCanteenDetailsReportDetailCount();
        }

        /// <summary>
        /// 获取部门列表（用于绑定下拉框）
        /// </summary>
        /// <returns></returns>
        public DataSet GetdeptName()
        {
            return dar.GetdeptName();
        }

        /// <summary>
        /// 获取二食堂消费明细表的数量
        /// </summary>
        /// <returns></returns>
        public int GetTwoCanteenDetailsReportDetailCountWhere(string Condition)
        {
            return dar.GetTwoCanteenDetailsReportDetailCountWhere(Condition);
        }

        /// <summary>
        /// 获取二食堂消费明细表
        /// </summary>
        /// <returns></returns>
        public DataSet BindList(int pagesize, int startindex, string strquery)
        {
            return dar.BindList(pagesize, startindex, strquery);
        }

        public DataSet GetListAll(string strquery)
        {
            return dar.GetListAll(strquery);
        }
    }
}
